package com.maychat.mapper;

import com.maychat.pojo.GroupInfo;
import com.maychat.pojo.UserContact;
import com.maychat.pojo.extended.GroupInfoWithOwnerName;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GroupInfoMapper {

    void insertGroupInfo(GroupInfo groupInfo);

    void updateGroupInfoById(GroupInfo groupInfo);

    List<GroupInfo> selectGroupInfos(GroupInfo groupInfo);

    List<GroupInfoWithOwnerName> selectGroupInfoWithOwnerName(GroupInfo groupInfo);

    List<GroupInfo> selectFriendGroupInfos(String userId);
}
